package com.easy.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easy.common.bean.Order;
import com.easy.common.bean.OrderItems;

import java.util.List;

/**
* 订单业务处理
* */
public interface IOrderService {
    Order insert(Order order);
    Order update(Order order);
    Order transact(Integer id);
    Order cancel(Integer id);
    Order getByID(Integer id);
    IPage<Order> getListByUserID(IPage page,Integer userid);
    IPage<Order> getListByCustomerID(IPage page,Integer customerid);
    OrderItems insertItem(OrderItems orderItems);
    OrderItems updateItem(OrderItems orderItems);
    int deleteItem(Integer id);





}
